//
//  ViewController.m
//  DatePicker
//
//  Created by Burn on 2018/12/29.
//  Copyright © 2018 nmgxysh. All rights reserved.
//

#import "ViewController.h"
#import "DatePickerView.h"
@interface ViewController ()


/***/
@property(strong,nonatomic) DatePickerView *dateView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor lightGrayColor];
    [self.view addSubview:self.dateView];

}


- (DatePickerView *)dateView{
    if (!_dateView) {
        _dateView = [[DatePickerView alloc]initWithFrame:CGRectMake(0, 100, [UIScreen mainScreen].bounds.size.width, 300)];
    }
    return _dateView;
}

@end
